{% extends "WebMainSiteBundle:Web:layout.html.twig" %}
{% set title = "信息中心" %}
{% block title %}
    {{ title }}
{% endblock %}
{% block myCss %}

{% endblock %}

{% block myJs %}

{% endblock %}
{% block page_header %}
    <div class="page-header">
        <div class="container">
            <div class="row">
                <div class="col-md-7">
                    <h1 class="yahei">{{ news.title }}</h1>
                </div>
                <div class="col-md-5">
                    <ol class="breadcrumb pull-right">
                        <li><a href="{{ path("WebIndex") }}">主页</a></li>
                        <li class="active">{{ title }}</li>
                    </ol>
                </div>
            </div>
        </div>
    </div>
{% endblock %}
{% block main %}
    <section class="content content-light">
        <div class="container">
            <div class="row">
                <nav class="col-md-3 menu-left">
                    <ul class="nav nav-pills nav-stacked">
                        {% for n in side %}
                            <li{% if  app.request.requestUri == path("WebNews",{id:n.id}) %} class="active"{% endif %}><a href="{{ path("WebNews",{id:n.id}) }}"><i class="fa fa-tags"></i> {{ n.title }}</a></li>
                        {% endfor %}
                    </ul>
                </nav>
                <section class="col-md-9 content-regular-page">
                    <h2 class="yahei">{{ news.title }}</h2>
                    <hr/>
                    {{ news.content | raw }}
                </section>
            </div>
        </div>
    </section>

{% endblock %}